{\rtf1\ansi\ansicpg936\cocoartf1344\cocoasubrtf720
{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;\f1\fnil\fcharset134 STHeitiSC-Light;\f2\fnil\fcharset0 Monaco;
}
{\colortbl;\red255\green255\blue255;\red29\green133\blue25;\red77\green0\blue158;\red46\green13\blue110;
\red180\green0\blue98;\red92\green38\blue153;\red217\green11\blue0;\red0\green11\blue255;\red110\green32\blue13;
\red186\green0\blue17;\red15\green114\blue1;\red249\green249\blue249;\red37\green127\blue159;\red48\green111\blue121;
\red68\green137\blue147;}
{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{decimal\}}{\leveltext\leveltemplateid1\'01\'00;}{\levelnumbers\'01;}\fi-360\li720\lin720 }{\listname ;}\listid1}}
{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}}
\paperw11900\paperh16840\margl1440\margr1440\vieww25100\viewh17040\viewkind0
\deftab1204
\pard\tx1204\pardeftab1204\pardirnatural

\f0\fs60 \cf0 \CocoaLigature0 UIScrollView
\f1 \'b9\'f6\'b6\'af\'ca\'d3\'cd\'bc
\f0\fs50 \cf2 \
//    
\f1 \'b4\'b4\'bd\'a8
\f0 \cf0 \
\pard\tx1204\tx18336\tx18336\pardeftab1204\pardirnatural
\cf0     \cf3 UIScrollView\cf0  * scroll = [[\cf3 UIScrollView\cf0  \cf4 alloc\cf0 ] \cf4 initWithFrame\cf0 :\cf5 self\cf0 .\cf6 view\cf0 .\cf6 bounds\cf0 ] ;\
\cf7 //
\f1 \'c9\'e8\'d6\'c3\'bb\'ad\'b2\'bc\'b5\'c4\'b4\'f3\'d0\'a1
\f0 ************************\cf0 \
    scroll.\cf6 contentSize\cf0  = \cf4 CGSizeMake\cf0 (image.\cf6 size\cf0 .\cf6 width\cf0 , image.\cf6 size\cf0 .\cf6 height\cf0 ) ;\
\cf7 //
\f1 \'c9\'e8\'d6\'c3\'bb\'ad\'b2\'bc\'cf\'d4\'ca\'be\'b5\'c4\'ce\'bb\'d6\'c3
\f0 ***********************\cf0 \
    scroll.\cf6 contentOffset\cf0  = \cf4 CGPointMake\cf0 (\cf8 200\cf0 , \cf8 200\cf0 ) ;\
\pard\tx1204\pardeftab1204\pardirnatural
\cf0 \
    \cf2 //
\f1 \'b5\'e3\'bb\'f7\'d7\'b4\'cc\'ac\'c0\'b8\'bb\'ac\'b6\'af\'b5\'bd\'b6\'a5\'b2\'bf
\f0  YES
\f1 \'ce\'aa\'bf\'c9\'d2\'d4\'bb\'ac\'b6\'af\'b5\'bd\'b6\'a5\'b2\'bf
\f0  NO
\f1 \'bd\'fb\'d6\'b9
\f0   
\f1 \'c4\'ac\'c8\'cf\'ce\'aa
\f0 YES\cf0 \
    scroll.\cf6 scrollsToTop\cf0  = \cf5 YES\cf0  ;\
    \cf2 //
\f1 \'b5\'af\'d0\'d4\'ca\'f4\'d0\'d4
\f0    
\f1 \'c4\'ac\'c8\'cf\'ce\'aa
\f0 YES   NO
\f1 \'b5\'c4\'bb\'b0\'d4\'f2\'c3\'bb\'d3\'d0\'b5\'af\'d0\'d4
\f0 ****************\cf0 \
    scroll.\cf6 bounces\cf0  = \cf5 YES\cf0  ;\
    \cf2 //
\f1 \'cb\'ae\'c6\'bd\'b7\'bd\'cf\'f2\'ca\'c7\'b7\'f1\'d3\'d0\'b5\'af\'d0\'d4
\f0   (
\f1 \'c8\'e7\'b9\'fb
\f0 bounces
\f1 \'c9\'e8\'ce\'aa
\f0 NO
\f1 \'a3\'ac\'c4\'c7\'c3\'b4
\f0 alwaysBounceHorizontal
\f1 \'c9\'e8\'d6\'c3\'ce\'de\'d0\'a7
\f0 )\cf0 \
\cf2 //    scroll.alwaysBounceHorizontal = NO ;\cf0 \
    \
    scroll.\cf6 alwaysBounceVertical\cf0  = \cf5 NO\cf0  ;\
    \cf2 //
\f1 \'c4\'ac\'c8\'cf\'ce\'aa
\f0 YES  
\f1 \'cf\'d4\'ca\'be\'bb\'ac\'b6\'af\'cc\'f5
\f0   
\f1 \'cb\'ae\'c6\'bd\'b7\'bd\'cf\'f2\'b5\'c4
\f0 \cf0 \
    scroll.\cf6 showsHorizontalScrollIndicator\cf0  = \cf5 NO\cf0  ;\
    scroll.\cf6 showsVerticalScrollIndicator\cf0  = \cf5 NO\cf0  ;\
    \
    \cf2 //
\f1 \'c9\'e8\'d6\'c3\'b4\'fa\'c0\'ed
\f0   
\f1 \'bd\'a8\'c1\'a2\'b4\'fa\'c0\'ed\'b9\'d8\'cf\'b5
\f0 ***********\cf0 \
    scroll.\cf6 delegate\cf0  = \cf5 self\cf0  ;\
\
	[scroll \cf4 addSubview\cf0 :iView] ;\
    [\cf5 self\cf0 .\cf6 view\cf0  \cf4 addSubview\cf0 :scroll] ;\
\
\pard\tx1204\pardeftab1204\pardirnatural
\cf9 #pragma mark -- UIScrollViewDelegate\
\pard\tx1204\pardeftab1204\pardirnatural
\cf2 //
\f1 \'b5\'b1\'ca\'d3\'cd\'bc\'bb\'ac\'b6\'af\'b5\'c4\'ca\'b1\'ba\'f2\'be\'cd\'bb\'e1\'b5\'f7\'d3\'c3\'b4\'cb\'ba\'af\'ca\'fd
\f0 \cf0 \
- (\cf5 void\cf0 )scrollViewDidScroll:(\cf3 UIScrollView\cf0  *)scrollView\
\{\
\cf4 	NSLog\cf0 (\cf10 @"scroll
\f1 \'d5\'fd\'d4\'da\'bb\'ac\'b6\'af
\f0 "\cf0 ) ;\cf2 \
\pard\pardeftab720

\f2 \cf11 \cb12 \expnd0\expndtw0\kerning0
\CocoaLigature1 //
\f1 \'bb\'e1\'d4\'da\'ca\'d3\'cd\'bc\'b9\'f6\'b6\'af\'ca\'b1\'ca\'d5\'b5\'bd\'cd\'a8\'d6\'aa\'a1\'a3\'b0\'fc\'c0\'a8\'d2\'bb\'b8\'f6\'d6\'b8\'cf\'f2\'b1\'bb\'b9\'f6\'b6\'af\'ca\'d3\'cd\'bc\'b5\'c4\'d6\'b8\'d5\'eb\'a3\'ac\'b4\'d3\'d6\'d0\'bf\'c9\'d2\'d4\'b6\'c1\'c8\'a1
\f2 contentOffset
\f1 \'ca\'f4\'d0\'d4\'d2\'d4\'c8\'b7\'b6\'a8\'c6\'e4\'b9\'f6\'b6\'af\'b5\'bd\'b5\'c4\'ce\'bb\'d6\'c3\'a1\'a3
\f0 \cf0 \cb1 \kerning1\expnd0\expndtw0 \CocoaLigature0 \
\pard\tx1204\pardeftab1204\pardirnatural
\cf0 \}\
\
\cf2 //
\f1 \'b5\'b1\'ca\'d3\'cd\'bc\'bd\'ab\'d2\'aa\'bf\'aa\'ca\'bc\'cd\'cf\'d7\'a7\'b5\'c4\'ca\'b1\'ba\'f2\'be\'cd\'bb\'e1\'b5\'f7\'d3\'c3\'b4\'cb\'ba\'af\'ca\'fd
\f0 \cf0 \
- (\cf5 void\cf0 )scrollViewWillBeginDragging:(\cf3 UIScrollView\cf0  *)scrollView\
\{\
    \cf4 NSLog\cf0 (\cf10 @"
\f1 \'ca\'d3\'cd\'bc\'bd\'ab\'d2\'aa\'bf\'aa\'ca\'bc\'cd\'cf\'d7\'a7
\f0 "\cf0 ) ;\
\pard\pardeftab720

\f2 \cf11 \cb12 \expnd0\expndtw0\kerning0
\CocoaLigature1 //
\f1 \'b5\'b1\'d3\'c3\'bb\'a7\'ca\'d7\'b4\'ce\'d4\'da\'c4\'b3\'b8\'f6\'b7\'bd\'cf\'f2\'c9\'cf\'bd\'f8\'d0\'d0\'cd\'cf\'b6\'af\'ca\'b1\'b5\'c3\'b5\'bd\'cd\'a8\'d6\'aa\'a1\'a3\'d5\'e2\'b8\'f6\'b7\'bd\'b7\'a8\'bb\'e1\'b5\'c3\'b5\'bd\'b1\'bb\'d7\'f7\'ce\'aa\'b2\'ce\'ca\'fd\'b4\'ab\'b5\'dd\'b5\'c4\'b9\'f6\'b6\'af\'ca\'d3\'cd\'bc\'d6\'b8\'d5\'eb\'a3\'ac\'d2\'b2\'cd\'ac\'d1\'f9\'bf\'c9\'d2\'d4\'b4\'d3\'d6\'d0\'b6\'c1\'c8\'a1
\f2 \'a0contentOffset\'a0
\f1 \'ca\'f4\'d0\'d4\'a1\'a3
\f0 \cf0 \cb1 \kerning1\expnd0\expndtw0 \CocoaLigature0 \
\pard\tx1204\pardeftab1204\pardirnatural
\cf0 \}\
\
\cf2 //
\f1 \'b5\'b1\'ca\'d3\'cd\'bc\'bd\'ab\'d2\'aa\'cd\'a3\'d6\'b9\'cd\'cf\'d7\'a7\'b5\'c4\'ca\'b1\'ba\'f2\'b5\'f7\'d3\'c3
\f0 \cf0 \
- (\cf5 void\cf0 )scrollViewWillEndDragging:(\cf3 UIScrollView\cf0  *)scrollView withVelocity:(\cf6 CGPoint\cf0 )velocity targetContentOffset:(\cf5 inout\cf0  \cf6 CGPoint\cf0  *)targetContentOffset\
\{\
    \cf4 NSLog\cf0 (\cf10 @"
\f1 \'ca\'d3\'cd\'bc\'bd\'ab\'d2\'aa\'cd\'a3\'d6\'b9\'cd\'cf\'d7\'a7
\f0 "\cf0 ) ;\
\}\
\
\cf2 //
\f1 \'b5\'b1\'ca\'d3\'cd\'bc\'d2\'d1\'be\'ad\'cd\'a3\'d6\'b9\'cd\'cf\'d7\'a7\'b5\'c4\'ca\'b1\'ba\'f2\'b5\'f7\'d3\'c3
\f0 \cf0 \
- (\cf5 void\cf0 )scrollViewDidEndDragging:(\cf3 UIScrollView\cf0  *)scrollView willDecelerate:(\cf5 BOOL\cf0 )decelerate\
\{\
    \cf4 NSLog\cf0 (\cf10 @"
\f1 \'ca\'d3\'cd\'bc\'d2\'d1\'be\'ad\'cd\'a3\'d6\'b9\'cd\'cf\'d7\'a7
\f0 "\cf0 ) ;\
\pard\pardeftab720

\f2 \cf11 \cb12 \expnd0\expndtw0\kerning0
\CocoaLigature1 //
\f1 \'b5\'b1\'d3\'c3\'bb\'a7\'cc\'a7\'c6\'f0\'cd\'cf\'b6\'af\'b5\'bd\'ca\'d6\'d6\'b8\'ca\'b1\'b5\'c3\'b5\'bd\'cd\'a8\'d6\'aa\'a1\'a3\'bb\'b9\'bb\'e1\'b5\'c3\'b5\'bd\'d2\'bb\'b8\'f6\'b2\'bc\'b6\'fb\'d6\'b5\'a3\'ac\'d6\'aa\'c3\'fb\'b1\'a8\'b8\'e6\'b9\'f6\'b6\'af\'ca\'d3\'cd\'bc\'d7\'ee\'ba\'f3\'ce\'bb\'d6\'c3\'d6\'ae\'c7\'b0\'a3\'ac\'ca\'c7\'b7\'f1\'d0\'e8\'d2\'aa\'bc\'f5\'cb\'d9\'a1\'a3
\f2 \'a0\cf13 \expnd0\expndtw0\kerning0
\'a0\'a0
\f0 \cf0 \cb1 \kerning1\expnd0\expndtw0 \CocoaLigature0 \
\pard\tx1204\pardeftab1204\pardirnatural
\cf0 \}\
\
\cf2 //
\f1 \'b5\'b1\'ca\'d3\'cd\'bc\'bd\'ab\'d2\'aa\'bf\'aa\'ca\'bc\'bc\'f5\'cb\'d9\'b5\'c4\'ca\'b1\'ba\'f2\'be\'cd\'bb\'e1\'b5\'f7\'d3\'c3\'b4\'cb\'ba\'af\'ca\'fd
\f0 \cf0 \
- (\cf5 void\cf0 )scrollViewWillBeginDecelerating:(\cf3 UIScrollView\cf0  *)scrollView\
\{\
    \cf4 NSLog\cf0 (\cf10 @"
\f1 \'ca\'d3\'cd\'bc\'bd\'ab\'d2\'aa\'bf\'aa\'ca\'bc\'bc\'f5\'cb\'d9
\f0 "\cf0 ) ;\
\pard\pardeftab720

\f2 \cf11 \cb12 \expnd0\expndtw0\kerning0
\CocoaLigature1 //
\f1 \'b5\'b1\'d3\'c3\'bb\'a7\'cc\'a7\'c6\'f0\'ca\'d6\'d6\'b8\'b6\'f8\'ca\'d3\'cd\'bc\'d0\'e8\'d2\'aa\'bc\'cc\'d0\'f8\'d2\'c6\'b6\'af\'ca\'b1\'a3\'ac\'bb\'e1\'ca\'d5\'b5\'bd\'cd\'a8\'d6\'aa\'a1\'a3\'d5\'e2\'b8\'f6\'b7\'bd\'b7\'a8\'bf\'c9\'d2\'d4\'d3\'c3\'c0\'b4\'b6\'c1\'c8\'a1
\f2 \'a0contentOffset
\f1 \'ca\'f4\'d0\'d4\'a3\'ac\'b4\'d3\'b6\'f8\'c5\'d0\'b6\'cf\'b3\'f6\'b5\'b1\'d3\'c3\'bb\'a7\'cc\'a7\'c6\'f0\'ca\'d6\'d6\'b8\'c7\'ae\'d7\'ee\'ba\'f3\'d2\'bb\'b4\'ce\'b9\'f6\'b6\'af\'b5\'bd\'b5\'c4\'ce\'bb\'d6\'c3\'a3\'ac\'cb\'e4\'c8\'bb\'d5\'e2\'b8\'f6\'ce\'bb\'d6\'c3\'b2\'a2\'b2\'bb\'bb\'e1\'ca\'b9\'b9\'f6\'b6\'af\'cc\'f5\'b5\'c4\'d7\'ee\'d6\'d5\'cd\'a3\'d6\'b9\'ce\'bb\'d6\'c3\'a1\'a3
\f0 \cf0 \cb1 \kerning1\expnd0\expndtw0 \CocoaLigature0 \
\pard\tx1204\pardeftab1204\pardirnatural
\cf0 \}\
\
\cf7 //
\f1 \'b5\'b1\'ca\'d3\'cd\'bc\'d2\'d1\'be\'ad\'cd\'a3\'d6\'b9\'bc\'f5\'cb\'d9\'b5\'c4\'ca\'b1\'ba\'f2\'be\'cd\'b5\'f7\'d3\'c3\'b4\'cb\'ba\'af\'ca\'fd
\f0 ****************************\cf0 \
- (\cf5 void\cf0 )scrollViewDidEndDecelerating:(\cf3 UIScrollView\cf0  *)scrollView\
\{\
    \cf4 NSLog\cf0 (\cf10 @"
\f1 \'ca\'d3\'cd\'bc\'d2\'d1\'be\'ad\'cd\'a3\'d6\'b9\'bc\'f5\'cb\'d9
\f0 "\cf0 ) ;\
\pard\pardeftab720

\f2 \cf7 \cb12 \expnd0\expndtw0\kerning0
\CocoaLigature1 //
\f1 \'b5\'b1\'c9\'cf\'c3\'e6\'cc\'e1\'b5\'bd\'b5\'c4\'bc\'f5\'cb\'d9\'cd\'ea\'b1\'cf\'a1\'a2\'b9\'f6\'b6\'af\'ca\'d3\'cd\'bc\'cd\'a3\'d6\'b9\'ca\'b1\'b5\'c3\'b5\'bd\'cd\'a8\'d6\'aa\'a1\'a3\'ca\'d5\'b5\'bd\'d5\'e2\'b8\'f6\'cd\'a8\'d6\'aa\'b5\'c4\'ca\'b1\'bf\'cc\'a3\'ac\'b9\'f6\'b6\'af\'ca\'d3\'cd\'bc\'b5\'c4
\f2 contentOffset
\f1 \'ca\'f4\'d0\'d4\'bb\'e1\'b7\'b4\'d3\'b3\'b3\'f6\'b9\'f6\'b6\'af\'cc\'f5\'d7\'ee\'d6\'d5\'cd\'a3\'d6\'b9\'b5\'c4\'ce\'bb\'d6\'c3\'a1\'a3
\f0 \cb1 \kerning1\expnd0\expndtw0 \CocoaLigature0 \
\pard\tx1204\pardeftab1204\pardirnatural
\cf0 \}\
\
\pard\tx1204\pardeftab1204\pardirnatural
\ls1\ilvl0\cf0 -(\cf5 BOOL\cf0 )scrollViewShouldScrollToTop:(\cf3 UIScrollView\cf0 *)scrollView;\
-(\cf5 void\cf0 )scrollViewDidScrollToTop:(UIScrollView*)scrollView;\
\pard\tx220\tx720\pardeftab720\li720\fi-720
\ls1\ilvl0\cf11 \cb12 \expnd0\expndtw0\kerning0
\CocoaLigature1 //
\f1 \'b5\'b1\'d3\'c3\'bb\'a7\'b5\'e3\'b3\'f6
\f0 iPhone
\f1 \'d7\'b4\'cc\'ac\'cc\'f5\'ca\'b1\'a3\'ac\'b9\'f6\'b6\'af\'ca\'d3\'cd\'bc\'ce\'af\'cd\'d0\'bf\'c9\'d2\'d4\'be\'f6\'b6\'a8\'ca\'d3\'cd\'bc\'ca\'c7\'b7\'f1\'b9\'f6\'b6\'af\'bb\'d8\'b5\'bd\'bf\'aa\'cd\'b7\'a1\'a3
\f0 \cf13 \expnd0\expndtw0\kerning0
\'a0\cf0 \cb1 \kerning1\expnd0\expndtw0 \CocoaLigature0 \
\pard\tx1204\pardeftab1204\pardirnatural
\cf0 \
*****************************************************\
\pard\tx1204\pardeftab1204\pardirnatural

\fs60 \cf7 UIScrollView
\f1 \'d7\'d4\'b6\'af\'d1\'ad\'bb\'b7\'b9\'f6\'b6\'af\'ca\'d3\'cd\'bc
\f0\fs50 \cf0 \
\pard\tx1204\pardeftab1204\pardirnatural
\cf9 #import \cf10 "ViewController.h"\cf0 \
\pard\tx1204\pardeftab1204\pardirnatural
\cf5 @interface\cf0  \cf14 ViewController\cf0  ()<\cf3 UIScrollViewDelegate\cf0 >\
\cf2 //    
\f1 \'cd\'bc\'c6\'ac\'d5\'c5\'ca\'fd
\f0 \cf0 \
\cf5 @property\cf0 (\cf5 nonatomic\cf0  , \cf5 assign\cf0 )\cf6 NSUInteger\cf0  count;\
\cf5 @end\cf0 \
\
\cf5 @implementation\cf0  ViewController\
\
- (\cf5 void\cf0 )viewDidLoad \{\
    [\cf5 super\cf0  \cf4 viewDidLoad\cf0 ];\
\cf2 //    
\f1 \'c9\'e8\'d6\'c3\'cd\'bc\'c6\'ac\'d5\'c5\'ca\'fd
\f0 \cf0 \
    \cf15 _count\cf0  = \cf8 6\cf0 ;\
\cf2 //    
\f1 \'c8\'a1\'d4\'ad
\f0 10
\f1 \'d5\'c5\'d5\'d5\'c6\'ac\'b7\'c5\'d4\'da\'ca\'fd\'d7\'e9\'d6\'d0
\f0 \cf0 \
\cf2 //    
\f1 \'ce\'aa\'ca\'b5\'cf\'d6
\f0 10
\f1 \'d5\'c5\'cd\'bc\'d1\'ad\'bb\'b7\'bb\'ac\'b6\'af
\f0 \cf0 \
\cf2 //    
\f1 \'d4\'da\'b5\'da
\f0 1
\f1 \'d5\'c5\'d6\'ae\'c7\'b0\'bc\'d3\'d2\'bb\'d5\'c5\'d7\'ee\'ba\'f3\'d2\'bb\'b7\'f9\'cd\'bc
\f0 \cf0 \
\cf2 //    
\f1 \'d4\'da\'b5\'da
\f0 10
\f1 \'d5\'c5\'d6\'ae\'ba\'f3\'bc\'d3\'d2\'bb\'d5\'c5\'b5\'da\'d2\'bb\'b7\'f9\'cd\'bc
\f0 \cf0 \
    \cf3 NSMutableArray\cf0  * imageArray = [\cf3 NSMutableArray\cf0  \cf4 array\cf0 ] ;\
    \
    \cf5 for\cf0  (\cf5 int\cf0  i = \cf8 0\cf0  ; i < \cf15 _count\cf0  ; i++)\
    \{\
        \cf3 NSString\cf0  * path = [[\cf3 NSBundle\cf0  \cf4 mainBundle\cf0 ] \cf4 pathForResource\cf0 :[\cf3 NSString\cf0  \cf4 stringWithFormat\cf0 :\cf10 @"%02d"\cf0 ,i+\cf8 1\cf0 ] \cf4 ofType\cf0 :\cf10 @"jpg"\cf0 ] ;\
        \cf3 UIImage\cf0  * image = [\cf3 UIImage\cf0  \cf4 imageWithContentsOfFile\cf0 :path] ;\
        [imageArray \cf4 addObject\cf0 :image] ;\
    \}\
\cf2 //    
\f1 \'b4\'b4\'bd\'a8\'bb\'ac\'b6\'af\'ca\'d3\'cd\'bc
\f0 \cf0 \
    \cf3 UIScrollView\cf0  * scroll = [[\cf3 UIScrollView\cf0  \cf4 alloc\cf0 ] \cf4 initWithFrame\cf0 :\cf4 CGRectMake\cf0 (\cf8 0\cf0 , \cf8 0\cf0 , \cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0 , \cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 height\cf0 )] ;\
    \cf2 /*****
\f1 \'c9\'e8\'d6\'c3\'bb\'ad\'cd\'bc\'b4\'f3\'d0\'a1
\f0 *****/\cf0 \
\cf2 //    
\f1 \'d7\'a2\'d2\'e2\'ca\'d7\'ce\'bb\'b8\'f7\'bc\'d3\'c1\'cb\'d2\'bb\'d5\'c5
\f0 \cf0 \
    scroll.\cf6 contentSize\cf0  = \cf4 CGSizeMake\cf0 ((\cf15 _count\cf0 +\cf8 2\cf0 )*\cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0 , \cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 height\cf0 ) ;\
    \cf2 /*****
\f1 \'c9\'e8\'d6\'c3\'bb\'ad\'cd\'bc\'ce\'bb\'d6\'c3
\f0 *****/\cf0 \
\cf2 //    
\f1 \'b4\'cb\'b4\'a6\'b4\'d3\'b5\'da
\f0 0+1
\f1 \'d5\'c5\'bf\'aa\'ca\'bc
\f0 \cf0 \
    scroll.\cf6 contentOffset\cf0  = \cf4 CGPointMake\cf0 (\cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0 , \cf8 0\cf0 ) ;\
    \
    scroll.\cf6 bounces\cf0  = \cf5 NO\cf0  ;\
    \cf2 //
\f1 \'c9\'e8\'d6\'c3\'ca\'c7\'b7\'f1\'b7\'ad\'d2\'b3
\f0   YES
\f1 \'d0\'e8\'d2\'aa\'b7\'ad\'d2\'b3
\f0  NO  
\f1 \'b2\'bb\'d0\'e8\'d2\'aa
\f0 \cf0 \
    \cf2 //
\f1 \'b7\'ad\'d2\'b3\'b5\'c4\'bf\'ed\'b6\'c8\'ca\'c7\'b8\'f9\'be\'dd
\f0 scrollView
\f1 \'b5\'c4\'bf\'ed\'b6\'c8\'c0\'b4\'bc\'c6\'cb\'e3\'b5\'c4\'a3\'a8
\f0 scrollView
\f1 \'d3\'d0\'b6\'e0\'bf\'ed\'a3\'ac\'c4\'c7\'c3\'b4\'c3\'bf\'b4\'ce\'b7\'ad\'d2\'b3\'b5\'c4\'bf\'ed\'b6\'c8\'be\'cd\'ca\'c7\'b6\'e0\'c9\'d9\'a3\'a9
\f0 \cf0 \
    scroll.\cf6 pagingEnabled\cf0  = \cf5 YES\cf0  ;\
    scroll.\cf6 delegate\cf0  = \cf5 self\cf0  ;\
    scroll.\cf6 tag\cf0  = \cf8 102\cf0  ;\
    [\cf5 self\cf0 .\cf6 view\cf0  \cf4 addSubview\cf0 :scroll] ;\
    \
    \cf2 /****
\f1 \'bd\'ab\'ca\'fd\'d7\'e9\'d6\'d0\'b5\'c4\'cd\'bc\'c6\'ac\'bc\'d3\'b5\'bd
\f0 ImageView
\f1 \'c9\'cf\'a3\'ac\'d4\'d9\'bd\'ab\'cb\'f9\'d3\'d0\'b5\'c4
\f0 ImageView
\f1 \'bc\'d3\'b5\'bd
\f0 ScrollView
\f1 \'c9\'cf
\f0 ****/\cf0 \
    \cf5 for\cf0  (\cf5 int\cf0  i = \cf8 0\cf0  ; i < \cf15 _count\cf0 +\cf8 2\cf0  ; i++)\
    \{\
        \cf3 UIImageView\cf0  * iView = [[\cf3 UIImageView\cf0  \cf4 alloc\cf0 ] \cf4 initWithFrame\cf0 :\cf4 CGRectMake\cf0 (\cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0 *i, \cf8 0\cf0 , \cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0 , \cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 height\cf0 )] ;\
        iView.\cf6 userInteractionEnabled\cf0  = \cf5 YES\cf0 ;\
        \cf2 //    
\f1 \'d4\'da\'b5\'da
\f0 1
\f1 \'d5\'c5\'d6\'ae\'c7\'b0\'bc\'d3\'d2\'bb\'d5\'c5\'d7\'ee\'ba\'f3\'d2\'bb\'b7\'f9\'cd\'bc
\f0 \cf0 \
        \cf5 if\cf0  (i == \cf8 0\cf0 )\
        \{\
            iView.\cf6 image\cf0  = imageArray[\cf15 _count\cf0 -\cf8 1\cf0 ] ;\
        \}\
        \cf2 //    
\f1 \'d4\'da\'b5\'da
\f0 10
\f1 \'d5\'c5\'d6\'ae\'ba\'f3\'bc\'d3\'d2\'bb\'d5\'c5\'b5\'da\'d2\'bb\'b7\'f9\'cd\'bc
\f0 \cf0 \
        \cf5 else\cf0  \cf5 if\cf0  (i == \cf15 _count\cf0 +\cf8 1\cf0 )\
        \{\
            iView.\cf6 image\cf0  = imageArray[\cf8 0\cf0 ] ;\
        \}\
        \cf5 else\cf0 \
        \{\
            iView.\cf6 image\cf0  = imageArray[i-\cf8 1\cf0 ] ;\
        \}\
        [scroll \cf4 addSubview\cf0 :iView] ;\
        \
    \}\
    \cf2 //
\f1 \'d2\'bb\'b6\'a8\'d2\'aa\'d4\'da
\f0 scrollview
\f1 \'cc\'ed\'bc\'d3\'d6\'ae\'ba\'f3\'cc\'ed\'bc\'d3
\f0 \cf0 \
    \cf3 UIPageControl\cf0  * page = [[\cf3 UIPageControl\cf0  \cf4 alloc\cf0 ] \cf4 initWithFrame\cf0 :\cf4 CGRectMake\cf0 (\cf8 0\cf0 , \cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 height\cf0 -\cf8 100\cf0 , \cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0 , \cf8 50\cf0 )] ;\
    page.\cf6 numberOfPages\cf0  = \cf15 _count\cf0  ;\
    page.\cf6 userInteractionEnabled\cf0  = \cf5 NO\cf0  ;\
    \cf2 //
\f1 \'c4\'ac\'c8\'cf\'b4\'d3\'c1\'e3\'bf\'aa\'ca\'bc
\f0   0,1,2,3,4.........\cf0 \
\cf2 //    page.currentPage = 1 ;\cf0 \
    page.\cf6 tag\cf0  = \cf8 101\cf0  ;\
    [\cf5 self\cf0 .\cf6 view\cf0  \cf4 addSubview\cf0 :page] ;\
    \
    [\cf3 NSTimer\cf0  \cf4 scheduledTimerWithTimeInterval\cf0 :\cf8 3\cf0  \cf4 target\cf0 :\cf5 self\cf0  \cf4 selector\cf0 :\cf5 @selector\cf0 (changFrame) \cf4 userInfo\cf0 :\cf5 nil\cf0  \cf4 repeats\cf0 :\cf5 YES\cf0 ] ;\
\}\
\
- (\cf5 void\cf0 )changFrame\
\{\
    \cf3 UIScrollView\cf0  * scroll = (\cf5 id\cf0 )[\cf5 self\cf0 .\cf6 view\cf0  \cf4 viewWithTag\cf0 :\cf8 102\cf0 ] ;\
    \cf3 UIPageControl\cf0  * page = (\cf5 id\cf0 )[\cf5 self\cf0 .\cf6 view\cf0  \cf4 viewWithTag\cf0 :\cf8 101\cf0 ] ;\
    \cf5 if\cf0 (scroll.\cf6 contentOffset\cf0 .\cf6 x\cf0  == (\cf15 _count\cf0 +\cf8 1\cf0 )*\cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0 )\
    \{\
        [scroll \cf4 setContentOffset\cf0 :\cf4 CGPointMake\cf0 (\cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0 , \cf8 0\cf0 )] ;\
    \}\
    \
    [\cf3 UIView\cf0  \cf4 animateWithDuration\cf0 :\cf8 0.5\cf0  \cf4 animations\cf0 :^\{\
        \cf6 CGFloat\cf0  x = scroll.\cf6 contentOffset\cf0 .\cf6 x\cf0  ;\
        x+= \cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0  ;\
        [scroll \cf4 setContentOffset\cf0 :\cf4 CGPointMake\cf0 (x, \cf8 0\cf0 )] ;\
    \}] ;\
    page.\cf6 currentPage\cf0  = scroll.\cf6 contentOffset\cf0 .\cf6 x\cf0 /\cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0  - \cf8 1\cf0  ;\
\}\
\
\cf2 //
\f1 \'b5\'b1\'ca\'d3\'cd\'bc\'d2\'d1\'be\'ad\'cd\'a3\'d6\'b9\'bc\'f5\'cb\'d9\'b5\'c4\'ca\'b1\'ba\'f2\'be\'cd\'b5\'f7\'d3\'c3\'b4\'cb\'ba\'af\'ca\'fd
\f0 \cf0 \
- (\cf5 void\cf0 )scrollViewDidEndDecelerating:(\cf3 UIScrollView\cf0  *)scrollView\
\{\
    \cf3 UIPageControl\cf0  * page = (\cf5 id\cf0 )[\cf5 self\cf0 .\cf6 view\cf0  \cf4 viewWithTag\cf0 :\cf8 101\cf0 ] ;\
    \cf2 //
\f1 \'b4\'f8\'b5\'bd\'bb\'ac\'b5\'bd
\f0 \cf0 \
    \cf5 if\cf0  (scrollView.\cf6 contentOffset\cf0 .\cf6 x\cf0  == \cf8 0\cf0 )\
    \{\
        [scrollView \cf4 setContentOffset\cf0 :\cf4 CGPointMake\cf0 (\cf15 _count\cf0 *\cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0 , \cf8 0\cf0 )] ;\
    \}\
    \cf5 else\cf0  \cf5 if\cf0 (scrollView.\cf6 contentOffset\cf0 .\cf6 x\cf0  == (\cf15 _count\cf0 +\cf8 1\cf0 )*\cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0 )\
    \{\
        [scrollView \cf4 setContentOffset\cf0 :\cf4 CGPointMake\cf0 (\cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0 , \cf8 0\cf0 )] ;\
    \}\
    page.\cf6 currentPage\cf0  = scrollView.\cf6 contentOffset\cf0 .\cf6 x\cf0 /\cf5 self\cf0 .\cf6 view\cf0 .\cf6 frame\cf0 .\cf6 size\cf0 .\cf6 width\cf0  - \cf8 1\cf0  ;\
    \
\}\
\
- (\cf5 void\cf0 )didReceiveMemoryWarning \{\
    [\cf5 super\cf0  \cf4 didReceiveMemoryWarning\cf0 ];\
    \cf2 // Dispose of any resources that can be recreated.\cf0 \
\}\
\cf5 @end\cf0 \
\
\
\
\
    }